package io.renren.modules.ureport;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

public class TestFile {
    public static void main(String[] args) throws IOException {
        File file = new File("/Users/zhangguangwei/Documents/file/chatpic/223_files");
        File[] fileList = file.listFiles();
        for(File fileItem :fileList){
            if(fileItem.getName().toLowerCase().endsWith("gif")){
                System.out.println(fileItem.getName());
                //复制文件到指定目录
               // FileUtils.copyFile(fileItem, new File("/Users/zhangguangwei/Documents/file/chatpic/new/"+fileItem.getName()));

            }
        }
    }
}
